﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_PROD_TECHNIC_COST
// * CreateDate    : 2012-09-26 14:23:08
// * Creater       : CodeSmith
// * LastChangeDate: 2012-09-26 14:23:08
// * LastChanger   : 2012-09-26 14:23:08
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class ProdTechnicCostTable : TableInfo
    {
        public const string C_TableName = "PROD_TECHNIC_COST";

        public const string C_ID = "ID";
        public const string C_TECHNIC_ID = "TECHNIC_ID";
        public const string C_COST = "COST";
        public const string C_VALIDITY_DATE_FROM = "VALIDITY_DATE_FROM";
        public const string C_VALIDITY_DATE_TO = "VALIDITY_DATE_TO";
        public const string C_VALIDITY_FLAG = "VALIDITY_FLAG";

        public ProdTechnicCostTable()
        {
            _tableName = "PROD_TECHNIC_COST";
        }

        protected static ProdTechnicCostTable _current;
        public static ProdTechnicCostTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new ProdTechnicCostTable();

            _current.Add(C_ID, new ColumnInfo(C_ID, "Id", true, typeof(string)));
            _current.Add(C_TECHNIC_ID, new ColumnInfo(C_TECHNIC_ID, "TechnicId", false, typeof(string)));
            _current.Add(C_COST, new ColumnInfo(C_COST, "Cost", false, typeof(decimal)));
            _current.Add(C_VALIDITY_DATE_FROM, new ColumnInfo(C_VALIDITY_DATE_FROM, "ValidityDateFrom", false, typeof(DateTime)));
            _current.Add(C_VALIDITY_DATE_TO, new ColumnInfo(C_VALIDITY_DATE_TO, "ValidityDateTo", false, typeof(DateTime)));
            _current.Add(C_VALIDITY_FLAG, new ColumnInfo(C_VALIDITY_FLAG, "ValidityFlag", false, typeof(int)));

        }

        public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }

        public ColumnInfo TECHNIC_ID
        {
            get { return this[C_TECHNIC_ID]; }
        }

        public ColumnInfo COST
        {
            get { return this[C_COST]; }
        }

        public ColumnInfo VALIDITY_DATE_FROM
        {
            get { return this[C_VALIDITY_DATE_FROM]; }
        }

        public ColumnInfo VALIDITY_DATE_TO
        {
            get { return this[C_VALIDITY_DATE_TO]; }
        }

        public ColumnInfo VALIDITY_FLAG
        {
            get { return this[C_VALIDITY_FLAG]; }
        }



    }
}

